package com.controller;


import com.common.utils.Result;
import com.entity.SharesInform;
import com.service.SharesInformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author wty
 * @since 2022-01-19
 */
@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
@RestController
@RequestMapping("/sharesInform")
public class SharesInformController {

    @Autowired
    private SharesInformService sharesInformService;

    /**
     * 获取提示的股数据
     */
    @RequestMapping("/getInformList")
    public Result getInformList(HttpServletRequest request){
       return sharesInformService.getInformList(request);
    }

}

